import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui';
Vue.config.productionTip = false
import 'element-ui/lib/theme-chalk/index.css';
import icon from "../icon/iconfont/iconfont.css"
import './assets/Css/element.scss'
import echarts from 'echarts'


function PouterPush(params, url) {
    if (!params) {
        this.$router.push(url)
    } else {
        this.$router.push({ url, params: params })
    }

}

function MessageFun(type, msg, center) {
    this.$message({
        showClose: true,
        message: msg,
        type: type,
        center: center
    });
}

Vue.use(ElementUI, icon);
Vue.prototype.MessageFun = MessageFun //消息提示
Vue.prototype.PouterPush = PouterPush //路由跳转
Vue.prototype.echarts = echarts //数据化图表
new Vue({
        router,
        store,
        render: h => h(App)
    }).$mount('#app')
    //at.alicdn.com/t/font_1502538_3pp1rflm11f.js